package com.audaque.springboot.foshanupload.web.productdemo.controller;

import com.audaque.springboot.foshanupload.authcore.constants.AuthConst;
import com.audaque.springboot.foshanupload.authcore.controller.AbstractAuthenticationController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zgb
 * @desc ...
 * @date 2022-06-28 21:53:02
 */

@Slf4j
@RequestMapping("authentication")
@RestController
public class AuthenticationController extends AbstractAuthenticationController {


    @GetMapping("/register")
    public String register() {
        //查询是否有相同用户名的用户
        //将密码进行加密操作
        //insert
        return AuthConst.USER_ID;
    }

}
